﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="4NewProduct.ascx.cs" Inherits="Controls_NavRightMain" %>
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    <HeaderTemplate>
        <div class="row">
            <div class="col-xs-12 col-md-12">
                <div class="panel">
                    <div class="panel-heading panel-icon4">
                        <h2 class="panel-title">Sản Phẩm Mới</h2>
                    </div>
    </HeaderTemplate>
    <ItemTemplate>
        <div class="media">

            <asp:HyperLink ID="HyperLink1" CssClass="pull-left" runat="server" NavigateUrl='<%# Eval("MaSP", "../Product-Detail.aspx?masp={0}") %>'>
                <asp:Image ID="Image2" runat="server" CssClass="media-object nav-img"
                    ImageUrl='<%# "~/"+Eval("Hinhanh") %>'
                    ToolTip='<%# Eval("TenSP") %>' />
            </asp:HyperLink>

            <div class="media-body">
                <div class="media-heading">
                    <asp:HyperLink ID="HyperLink4" runat="server"
                        NavigateUrl='<%# Eval("MaSP", "../Product-Detail.aspx?masp={0}") %>'
                        Text='<%# Eval("TenSP") %>'></asp:HyperLink>
                </div>
                <div class="pull-left price-red">
                    <asp:Label ID="Label1" runat="server" CssClass="price-red" Text='<%#Eval("Gia","{0:0,00} ₫")%>'></asp:Label>
                </div>
            </div>
        </div>
    </ItemTemplate>

    <FooterTemplate>
        </div>
    </div>
</div>
    </FooterTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:QLBSConnectionString %>"
    SelectCommand="SELECT top 4 * FROM [SanPham] order by Ngaynhap desc"></asp:SqlDataSource>